package com.atguigu.gmall.seckill;

import com.atguigu.gmall.common.exception.EnableAutoExceptionHandle;
import com.atguigu.gmall.common.interceptors.annotation.EnableUserAuthFeignInterceptor;
import com.atguigu.gmall.util.annotation.EnableMallRabbit;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author lfy
 * @Description
 * @create 2022-10-25 8:57
 */
@EnableFeignClients(basePackages = "com.atguigu.gmall.feign.order")
@EnableUserAuthFeignInterceptor
@EnableMallRabbit
@EnableAutoExceptionHandle
@EnableScheduling
@MapperScan(basePackages = "com.atguigu.gmall.seckill.mapper")
@SpringCloudApplication
public class SeckillMainApplication {

    public static void main(String[] args) {
        SpringApplication.run(SeckillMainApplication.class,args);
    }
}
